export function tobeReadColumns() {
  return [
    {
      title: this.$t('module.launchApp.processTitle'),
      key: 'procinstName',
      ellipsis: true,
      minWidth: 140
    },
    {
      title: this.$t('module.launchApp.taskName'),
      key: 'taskName',
      ellipsis: true,
      minWidth: 140
    },
    {
      title: this.$t('common.status'),
      key: 'status',
      minWidth: 65,
      render: (h, params) => {
        return h(
          'StatusButton',
          {
            props: {
              status: !!params.row.procinstEndTime
            }
          },
          params.row.status
        )
      }
    },
    {
      title: this.$t('module.launchApp.fromUserView'),
      key: 'fromUserView',
      ellipsis: true,
      minWidth: 140
    },
    {
      title: this.$t('module.launchApp.toUserView'),
      key: 'toUserView',
      ellipsis: true,
      minWidth: 140
    },
    {
      title: this.$t('module.launchApp.isRead'),
      key: 'isReadView',
      ellipsis: true,
      minWidth: 140
    },
    {
      title: this.$t('module.launchApp.passTime'),
      key: 'createTime',
      ellipsis: true,
      minWidth: 140
    },
    {
      title: this.$t('common.operating'),
      align: 'center',
      fixed: 'right',
      width: 80,
      render: (h, params) => {
        return h('RowTools', {
          props: {
            data: [
              {
                type: 'icon',
                icon: 'ios-list-box-outline',
                text: this.$t('module.launchApp.openDetail'),
                handle: () => {
                  this.openDetail(params.row)
                }
              }
            ]
          }
        })
      }
    }
  ]
}
